home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / TDE.ARJ / TDEFLAGS.H < prev    next >
Text File  |  1992-07-14  |  4KB  |  92 lines

  1. /***************************************************************************
  2.  
  3.  FILENAME - TDEFLAGS.H: definition of class TDataEntry bit masks and commands
  4.  ---------------------
  5.  
  6.  Class TDataEntry v1.0 - 07/14/92
  7.  --------------------------------
  8.  
  9.  ----------------------------------------------------------------------------
  10.  Author: Jeff Penrose * JDP Custom Software * (818) 344-7303 * CIS 71043,3727
  11.  ----------------------------------------------------------------------------
  12.  
  13.  A data entry class for Borland's Turbo Vision, derived from TInputLine.
  14.  
  15.  Copyright Notice
  16.  ================
  17.   As this material is ultimately derived from Borland source files, any of
  18.  their copyrights which MAY apply DO apply.
  19.   From the author's standpoint, you may use this material freely and,
  20.  hopefully, post any comments/corrections/enhancements to me at the above-
  21.  noted addresses.  I do ask that you not distribute this material except as
  22.  originally received, including all source/documentation files in their
  23.  original form.
  24.   If you DO modify or enhance any of this code, please send any such changes
  25.  to me for incorporation into a future version.  Any such enhancements will
  26.  be DONATED, without expectation of compensation or incorporation into
  27.  future versions.  Again, if you distribute this code, please do so in its
  28.  original, unmodified form including all source files and documentation.
  29.  
  30. Source files included
  31. =====================
  32.  TDE     .DOC: This documentation.
  33.  TDE     .MAN: How to use TDataEntry in your dialog objects
  34.  TDE     .H  : header file containing class declarations for classes
  35.  TDEFLAGS.H  :   "     "      "       flags and command definitions
  36.  TDE     .CPP: Class TDataEntry
  37.  TDEDATE .CPP: Class TDEDate
  38.  TDEPHONE.CPP: Classes TDEPhone, TDEZipCode, TDEState
  39.  TDENUMS .CPP: Class TDEInteger
  40.  TDECLUST.CPP: Non-TDataEntry classes TDEButton, TDERadioButtons, TDECheckBoxes
  41.  TDEINPLI.CPP: Non-TDataEntry class TDEInputLine
  42.  TDELIB  .PRJ: Project for building library TDELIB.LIB
  43.  TDEDEMO .CPP: Demo program
  44.  TDEDEMO .PRJ: Project for building TDEDEMO.EXE
  45.  
  46. ***************************************************************************/
  47.  
  48. #if !defined ( __TDEFLAGS_H )
  49. #define __TDEFLAGS_H
  50.  
  51. // Global control flags - sets globalMode - affects ALL TDE objects
  52.  
  53. #define   tdgEnterIsTab     0x0001  // ENTER acts like TAB
  54. #define   tdgBeepEnable     0x0002  // Sound on error
  55. #define   tdgUpDownEnable   0x0004  // UP/DOWN arrows act like TAB/SHFT-TAB
  56. #define   tdgValidNow       0x0008  // Validate when losing focus
  57. #define   tdgValidUpDown    0x0010  // Validate when UP/DOWN keys used
  58.                                     //   (tdmValidNow must also be set)
  59. #define   tdgSelectOnFocus  0x0020  // Select data when focus received
  60. #define   tdgReserved_2     0x0040  //
  61. #define   tdgReserved_3     0x0080  //
  62. #define   tdgReserved_4     0x0100  //
  63. #define   tdgReserved_5     0x0200  //
  64.  
  65. // Local control flags - sets localMode - local to each TDE object
  66.  
  67. #define   tdlAutoExit         0x01  // Exit control when last position filled
  68. #define   tdlRightToLeft      0x02  // Calculator-style right-to-left entry
  69. #define   tdlRLArrows         0x04  // Enable right/left arrow keys
  70. #define   tdlInsertEnable     0x08  // Enable insert key
  71. #define   tdlRequired         0x10  // Data is REQUIRED
  72. #define   tdlSecure           0x20  // Security: secureChar mask is used
  73.  
  74. // Format control flags - sets dataFormat - local to each TDE object
  75.  
  76. #define   tdfUpper          0x0001  // make uppercase
  77. #define   tdfLower          0x0002  //   "  lowercase
  78. #define   tdfRightJust      0x0004  // right-justify
  79. #define   tdfLeftJust       0x0008  // left    "
  80. #define   tdfCenter         0x000C  // center
  81.  
  82. // TDataEntry commands
  83.  
  84. #define  cmTDQueryValid       41456u  // Call validData()'s - warn/select
  85. #define  cmTDQueryValidQuiet  41457u  //  "      "          - don't warn/select
  86. #define  cmTDQueryChanged     41458u  // Check if data changed
  87. #define  cmTDGotoNumber       48459u  // Go to field number
  88. #define  cmTDGotoName         48560u  // Go to field name
  89. #define  cmTDResetData        48561u  // Go to field name
  90.  
  91. #endif
  92.